package com.chen.recruit.domain.dto;

import com.chen.recruit.common.valid.AddGroup;
import com.chen.recruit.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
@ApiModel("PostCollectDto 收藏数据传输对象")
public class PostCollectDto {

    @ApiModelProperty("收藏id")
    @Null(message = "新增收藏id必须为空", groups = AddGroup.class)
    @NotNull(message = "更新收藏id不能为空", groups = UpdateGroup.class)
    private Integer id;

    @ApiModelProperty("学生id")
    @NotNull(message = "学生id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer studentId;

    @ApiModelProperty("招聘岗位id")
    @NotNull(message = "招聘岗位id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer recruitPostId;

}
